<!DOCTYPE html>
<html lang="zh-CN">
 
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- Tell the browser to be responsive to screen width -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>doc</title>
</head>

<body>
    <table border="1">
        <caption>用户信息表</caption>
        <thead>
            <tr>
                <td>ID</td>
                <td>姓名</td>
                <td>性别</td>
                <td>邮箱</td>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($users as $user) :?>
            <tr>
                <td><?=$user['id'] ?></td>
                <td><?=$user['uname'] ?></td>
                <td><?=$user['sex'] ? '女' :'男' ?></td>
                <td><?=$user['email'] ?></td>
            </tr>
            <?php endforeach ?>
        </tbody>
    </table>
</body>

</html>